﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace Nirvana
{
    [ExecuteInEditMode]
    public class CGLookTarget : MonoBehaviour
	{

        [SerializeField]
        private Transform target;

        private void LateUpdate()
        {
            if (this.target != null)
            {
                this.transform.LookAt(this.target);
            }
        }
    }
}

